package cn.fastloader;

import io.micrometer.core.instrument.MeterRegistry;
import jcifs.smb.SmbException;
import jcifs.smb.SmbFile;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import java.net.MalformedURLException;

@SpringBootApplication
public class FastLoaderApplication {

	public static void main(String[] args) throws MalformedURLException, SmbException {
		//SmbFile sf = new SmbFile("smb://GWT:Wjb85161002@10.198.9.88/共享文件/新建文本文档.txt");
		//SmbFile sf = new SmbFile("smb://Wyh:Admin@jsyl1@10.198.9.81/共享/test.txt");
		//System.out.println(sf.isDirectory());
		SpringApplication.run(FastLoaderApplication.class, args);
	}

	@Bean
	MeterRegistryCustomizer<MeterRegistry> configurer(){
		return (registry)->registry.config().commonTags("application","fastloader");
	}

}
